<!DOCTYPE html>
<html lang="en" xmlns:th:="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>update employee</title>
</head>
<body>
    <form th:action="@{/employee}" method="post">
        <input type="hidden" name="_method" value="put"/>
        <input  type="hidden" name="id" th:value="${employee.id}"/>
        <label>lastName</label>
        <input type="text" name="lastName" th:value="${employee.lastName}"/>
        <br/>
        <label>email</label>
        <input type="text" name="email" th:value="${employee.email}"/>
        <br/>
        <label>gender</label>
        <input type="radio" name="gender" value="1" th:field="${employee.gender}"/>male
        <br/>
        <input type="radio" name="gender" value="0" th:field="${employee.gender}"/>female
        <br/>
        <input type="submit" value="update"/>
    </form>
</body>
</html>